

const types = {
  TEST_INIT: 'test_init'
}

const actions = {
  getInitTest(data: any) {
    return {
      type: types.TEST_INIT,
      data
    }
  }
}

const defaultState = {
  list: [
    {
      "endStationCode": "AOH",
      "remainTicketCount": 0,
      "dTimeStr": "201902101736",
      "sort": 4,
      "time": "4时29分",
      "isPreOrder": false,
      "extra": "{}",
      "trainShowDescColor": -14964294,
      "dStation": "北京南",
      "date": "2019-02-10",
      "remainTicket": "0张",
      "priceMsg": "¥443.5",
      "dptStationCode": "VNP",
      "trainType": "高速动车",
      "timeInMinute": 269,
      "dStationInfo": true,
      "trainStatus": 4,
      "dTime": "17:36",
      "startStationCode": "VNP",
      "isSupportCandidate": false,
      "dCity": "北京",
      "aStationInfo": false,
      "tagCode": -1,
      "trainShowDesc": "可抢票",
      "robSuccRate": "",
      "distance": "1345",
      "isSupportCard": true,
      "remainTicketColor": -39424,
      "aStation": "南京南",
      "tagStyleType": 0,
      "noTicketSceneOptimise": false,
      "aCity": "南京",
      "aTimeStr": "201902102205",
      "remainTicketType": 0,
      "aTime": "22:05",
      "dayAfter": "",
      "tagColor": -1,
      "trainNumber": "G157",
      "arrStationCode": "NKH",
      "sortGroup": 0,
      "remainTicketBackgroundColor": 0,
      "action": {

      }
    }
    // {

    //   time: {
    //     start: '22:00',
    //     end: '1:00'
    //   },
    //   address: {
    //     start: '北京',
    //     end: '上海'
    //   },
    //   checi: {
    //     num: 'G156',
    //     time: '4小时'
    //   },
    //   price: {
    //     num: '$445',
    //     tip: '可抢票'
    //   }
    // }
  ]
}

export default (state = defaultState, action: any) => {
  switch (action.type) {
    case types.TEST_INIT:
      return { ...state }
    default:
      return { ...state }
  }
}